import { AllowDrop } from "ant-design-vue/lib/vc-tree/props";

/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
  grant_type: string;
  scope: string;
  client_id: string;
  client_secret: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  // userId: string | number;
  access_token: string;
  token_type: string;
  refresh_token:string;
  expires_in: number;
  scope: string;
  jti: string;

  // role: RoleInfo;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  // roles: RoleInfo[];
  // 用户id
  // userId: string | number;
  // 姓名
  name: string,
  // 用户名
  username: string;
  // 头像
  avatar: string;
  // 邮箱
  email: string;
  // 手机
  phone?: string;
  // 最后一次登录时间
  lastLoginIp?: string;
  // 最后的Gmt登录时间
  lastGmtLoginTime?: string;
  
}
